package event;

import java.net.InetAddress;

import se.lth.cs.realtime.event.RTEvent;

/**
 * Event that transmits motion on and off throughout the system.
 * 
 */
public class MotionEvent extends RTEvent {
	private boolean motion;
	private String inetAddress;


	public MotionEvent(boolean motion, String string) {
		this.motion = motion;
		this.inetAddress = string;
	}

	/**
	 * @return true or false, depending on motion on or off.
	 */
	public boolean getMotion() {
		return motion;
	}
	
	public String getAdress(){
		return inetAddress;
	}


}
